﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DapperExtensions.Mapper;

namespace ZLWeb.WebApiEntity.EasyUse
{
    public class Result
    {
        private string _resultsm = string.Empty;

        /// <summary>
        ///  支付结果：0-未知 1-成功 2-失败
        /// </summary>
        public short result { get; set; }

        /// <summary>
        ///  第三方支付返回结果说明：支付状态说明(针对失败/未知的错误说明)
        /// </summary>
        public string resultsm
        {
            get { return _resultsm; }
            set { _resultsm = value; }
        }
    }

    public class ResultMapper : ClassMapper<Result>
    {
        public ResultMapper()
        {
            Table("#result");
            Map(f => f.result).Column("result");
            Map(f => f.resultsm).Column("resultsm");

        }
    }
}
